﻿using System; 
using System.Collections.Generic;

namespace Orid.Management.Statistics.Tools.Decomposition.Data
{
    class JobLogOffline:JobLog
    {
        string connectString,jobTableName;

        public JobLogOffline()
        {
            connectString =Config.Setting.SettingInstance.DBAddress_Offline;
            //[JobLogs]
            jobTableName = Config.Setting.SettingInstance.JobLogs_Offline;
        }

        public override List<Orid.Management.Statistics.Tools.Decomposition.Model.ModelJobLog> GetJobLog(Guid JobID, int downloadID)
        {
            if (JobID == null)
            {
                return null;
            }

            return GetJobLog(JobID, downloadID, connectString, jobTableName, new AccountOffline());
             
      }

    }
}
